<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        tr {
            height: 41px;
            font-size: 18px;
        }

        a {
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div style="position: fixed; display: block; height: 100%; overflow-y: scroll; width: 100%;">
        <div>
            <input type="text" id="input1">
            <input type="button" value="添加" onclick="mySet()">
        </div>
        <table id="table1" style="width: 100%; padding: 26px 43px;">
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </table>
    </div>
</body>
<script>
    let obj = {
        'djfeo': {
            type: '计算机的',
            name: '计算机的',
            href: '计算机的',
            node: '计算机的',
            author: '计算机的',
        },
    }
    let html = '';

    function mySet() {
        let input1 = document.getElementById('input1');
        setTable(input1.value);
    }

    function setTable(obj) {
        let data;
        try {
            data = JSON.parse(obj);
        } catch (e) {
            data = obj;
        }
        let html = '';
        Object.keys(data).forEach((item) => {
            let res = data[item];
            html += `<tr>
            <td><a href="${res.href}" target="_blank">${res.name}</a></td>
            <td>${res.node}</td>
            <td>${res.author}</td>
            <td>${res.type}</td>
        </tr>`;
        })
        document.getElementById('table1').innerHTML = html;
    }

    setTable(obj)
</script>

</html>